<!DOCTYPE html>
<html>
<#include "../head.html">
    <style>
        .account_type{float:left;margin-top: 3px;}
    </style>
<body>
<table class="mc">
<tr>
<td class="mc-l">
    <!--左侧导航---{-->
    <div id="navPanelContainer">
        <div class="system-logo cd"></div>
        <!--管理员信息---{-->
        <#include "../adminInfo.html">
            <!--管理员信息---}-->
            <div class="nav-wrap">
            	<!-- v1.6.6.2 RDPROJECT-238 zza 2013-10-21 start -->
                <#include "../report/left.html">
                <!-- v1.6.6.2 RDPROJECT-238 zza 2013-10-21 end -->
            </div>
    </div>
    <!--左侧导航---}-->
</td>
<td class="mc-m">
    <div class="navToggle"></div>
</td>
<td class="mc-r">
<!--顶部导航---{-->
<#include "../topNav.html">
    <!--顶部导航---}-->

    <!--面包屑导航---{-->
    <#assign moduleName="报表导出列表">
        <#include "banner.html">
            <!--面包屑导航---}-->

            <!--工具栏--{-->
            <div id="toolbar" class="clearfix">
                <div class="toolbor-module export">
                    <input type="button" onclick="exportxls()" value="导出报表" class="input-button export-btn"/>
                </div>
              
                <div class="toolbor-module search">    
                    <input type="button" value="搜索"  class="input-button" onclick="sousuo();">
                </div>
                
               <div class="toolbor-module search">
                	<div style="height:22px;line-height:22px;float:left;">月份：</div>
					<div class="select-box" id="month_time">
						<div class="tag-select">${params.get("month_time")?if_exists}</div>
						<ul class="tag-options">
							<li data-value="1" <#if params.get("month_time")?? && params.get("month_time") == "1" >data-selected="selected"</#if>>1月</li>
							<li data-value="2" <#if params.get("month_time")?? && params.get("month_time") == "2" >data-selected="selected"</#if>>2月</li>
							<li data-value="3" <#if params.get("month_time")?? && params.get("month_time") == "3" >data-selected="selected"</#if>>3月</li>
							<li data-value="4" <#if params.get("month_time")?? && params.get("month_time") == "4" >data-selected="selected"</#if>>4月</li>
							<li data-value="5" <#if params.get("month_time")?? && params.get("month_time") == "5" >data-selected="selected"</#if>>5月</li>
							<li data-value="6" <#if params.get("month_time")?? && params.get("month_time") == "6" >data-selected="selected"</#if>>6月</li>
							<li data-value="7" <#if params.get("month_time")?? && params.get("month_time") == "7" >data-selected="selected"</#if>>7月</li>
							<li data-value="8" <#if params.get("month_time")?? && params.get("month_time") == "8" >data-selected="selected"</#if>>8月</li>
							<li data-value="9" <#if params.get("month_time")?? && params.get("month_time") == "9" >data-selected="selected"</#if>>9月</li>
							<li data-value="10" <#if params.get("month_time")?? && params.get("month_time") == "10" >data-selected="selected"</#if>>10月</li>
							<li data-value="11" <#if params.get("month_time")?? && params.get("month_time") == "11" >data-selected="selected"</#if>>11月</li>
							<li data-value="12" <#if params.get("month_time")?? && params.get("month_time") == "12" >data-selected="selected"</#if>>12月</li>
						</ul>
					</div>
					</div>
                <div class="toolbor-module search">
                	<div style="height:22px;line-height:22px;float:left;">年份：</div>
					<div class="select-box" id="year_time">
						<div class="tag-select">${params.get("year_time")?if_exists}</div>
						<ul class="tag-options">
							<li data-value="2010" <#if params.get("year_time")?? && params.get("year_time") == "2010" >data-selected="selected"</#if>>2010</li>
							<li data-value="2011" <#if params.get("year_time")?? && params.get("year_time") == "2011" >data-selected="selected"</#if>>2011</li>
							<li data-value="2012" <#if params.get("year_time")?? && params.get("year_time") == "2012" >data-selected="selected"</#if>>2012</li>
							<li data-value="2013" <#if params.get("year_time")?? && params.get("year_time") == "2013" >data-selected="selected"</#if>>2013</li>
							<li data-value="2014" <#if params.get("year_time")?? && params.get("year_time") == "2014" >data-selected="selected"</#if>>2014</li>
							<li data-value="2015" <#if params.get("year_time")?? && params.get("year_time") == "2015" >data-selected="selected"</#if>>2015</li>
							<li data-value="2016" <#if params.get("year_time")?? && params.get("year_time") == "2016" >data-selected="selected"</#if>>2016</li>
							<li data-value="2017" <#if params.get("year_time")?? && params.get("year_time") == "2017" >data-selected="selected"</#if>>2017</li>
							<li data-value="2018" <#if params.get("year_time")?? && params.get("year_time") == "2018" >data-selected="selected"</#if>>2018</li>
							<li data-value="2019" <#if params.get("year_time")?? && params.get("year_time") == "2019" >data-selected="selected"</#if>>2019</li>
							<li data-value="2020" <#if params.get("year_time")?? && params.get("year_time") == "2020" >data-selected="selected"</#if>>2020</li>
						</ul>
					</div>
				</div>
				
                <div class="toolbor-module search">
                    <div style="height:22px;line-height:22px;float:left;">类型：</div>
                   	<div class="select-box" id="type">
                        <div class="tag-select">全部</div>
                        <ul class="tag-options">
                        <!-- v1.6.6.1 RDPROJECT-64 zza 2013-09-25 start -->
                           <li data-value="0" <#if params.get("type")?? && params.get("type")=="0" >data-selected="selected"</#if> class="open-selected">全部</li>
                           <li data-value="101" <#if params.get("type")?? && params.get("type")=="101" >data-selected="selected"</#if>>秒还标</li>
                           <li data-value="102" <#if params.get("type")?? && params.get("type")=="102" >data-selected="selected"</#if>>信用标</li>
                           <li data-value="103" <#if params.get("type")?? && params.get("type")=="103" >data-selected="selected"</#if>>抵押标</li>
                           <li data-value="104" <#if params.get("type")?? && params.get("type")=="104" >data-selected="selected"</#if>>净值标</li>
                           <li data-value="112" <#if params.get("type")?? && params.get("type")=="112" >data-selected="selected"</#if>>担保标</li>
                           <li data-value="110" <#if params.get("type")?? && params.get("type")=="110" >data-selected="selected"</#if>>流转标</li>
                        <!-- v1.6.6.1 RDPROJECT-64 zza 2013-09-25 end -->
                        </ul>
                    </div>
                </div>
				
				<div class="toolbor-module search">
                        <input type="text" name="username" id="username" value="请输入用户名" data-value="请输入用户名" class="search-value">
                	</div>
				
            </div>
            <!--工具栏--}-->

            <div id="main" class="clearfix">
                <form action="" method="post">
                    <table class="data-list">
                        <tr class="header">
                            <td>标ID</td>
                            <td>用户名</td>
                            <td width="20%">标名称</td>
                            <td>还款金额</td>
                            <td>有效投资金额</td> 
                            <td>操作金额</td>
                            <td>利率</td>
                            <td>利息</td>
                            <td>是否天标</td>
                            <td>天数</td>
                            <td>月标时间</td>
                            <td>投标时间</td>
                            <td>标类型</td>
                        </tr>
                        <#import "../../common/function.html" as func>
                        <!-- v1.6.6.2 zza 2013-10-21 start -->
                        <#if tenderList??>
	                        <#list tenderList as item>
	                            <tr class="s">
	                                <td>${item.id?c}</td>
	                                <td>${item.username!"-"}</td>
	                                <td>${item.name!"-"}</td>
	                                <td>${item.repayment_account!0}</td>
	                                <td>${item.account!0}</td>
	                                <td>${item.money!0}</td>
	                                <td>${item.apr!0}%</td>
	                                <td>${item.interest!0}</td>
	                                <td>${item.isday!"-"}</td>
	                                <td>${item.time_limit_day!0}</td>
	                                <td>${item.time_limit!0}</td>
	                                <td>${dateformat(item.addtime!0)}</td>
	                                <td>${item.type_name!"-"}</td>
	                            </tr>
	                        </#list>
                        </#if>
                        <!-- v1.6.6.2 zza 2013-10-21 start -->
                    </table>
                </form>

                <!--底部工具栏--{-->
                <div id="bottomToolbar" class="clearfix">
                    <div class="other-tool">
                        <dl class="refresh-data">
                            <dt class="refresh-data-icon"></dt>
                            <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                        </dl>
                    </div>

                    <!--翻页系统--{-->
                    <div class="container">
                        <#import "../../common/page.html" as pager>
                            <@pager.pagination page=page url="/admin/report/monthTender.html" map=params style="style1"  />
                    </div>
                    <!--翻页系统--}-->
                </div>
                <!--底部工具栏--}-->

                <script>
                    var url = '/admin/report/monthTender.html?search=true';
                    var xlsurl = '/admin/report/monthTender.html?actionType=export';

                    function sousuo(){
                        var sou = "";
                        var year_time = $("#year_time").find(".open-selected").attr("data-value");
                        if (year_time!="" && year_time!=null){
            				sou += "&year_time="+year_time;
            			}
                        var month_time = $("#month_time").find(".open-selected").attr("data-value");
                        if (month_time!="" && month_time!=null){
            				sou += "&month_time="+month_time;
            			}
                        var type = $("#type").find(".open-selected").attr("data-value");
                        if (type!=null&&type!=""&&type!="undefine"){
                            sou += "&type="+type;
                        }
                        var username = $("#username").val();
                        if (username!=null&&username!=""&&username!="undefine"&&username!="请输入用户名"){
                            sou += "&username="+username;
                        }
                        if (sou!=""){
                            location.href=url+sou;
                        }else location.href=url;
                    }
                    function exportxls(){
                        var sou = "";
                        var year_time = $("#year_time").find(".open-selected").attr("data-value");
                        if (year_time!="" && year_time!=null){
            				sou += "&year_time="+year_time;
            			}
                        var month_time = $("#month_time").find(".open-selected").attr("data-value");
                        if (month_time!="" && month_time!=null){
            				sou += "&month_time="+month_time;
            			}
                        var type = $("#type").find(".open-selected").attr("data-value");
                        if (type!=null&&type!=""&&type!="undefine"){
                            sou += "&type="+type;
                        }
                        var username = $("#username").val();
                        if (username!=null&&username!=""&&username!="undefine"&&username!="请输入用户名"){
                            sou += "&username="+username;
                        }
                        if (sou!=""){
                            location.href=xlsurl+sou;
                        }else{
                            location.href=xlsurl;
                        }
                    }
                </script>
            </div>

</td>
</tr>
<tr>
    <!--尾部--{-->
    <td colspan="3" class="mc-b"><#include "../foot.html"></td>
    <!--尾部--}-->
</tr>
</table>

</body>
</html>
<#include "../jsPage.html">